package com.example.test2;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.example.new6.R;
import com.example.test2.view.DictActivity;
import com.example.test2.view.HotActivity;
import com.example.test2.view.TranslateActivity;

public class Test2Activity extends AppCompatActivity {
    private TextView mHot,mTranslate,mDictionaries;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mHot = findViewById(R.id.hot);
        mTranslate  =findViewById(R.id.translate);
        mDictionaries = findViewById(R.id.dictionaries);
        mHot.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });

        mTranslate.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });

        mDictionaries.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(Test2Activity.this, DictActivity.class);
                startActivity(intent);
            }
        });
        mTranslate.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(Test2Activity.this, TranslateActivity.class);
                startActivity(intent);
            }
        });
        mHot.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(Test2Activity.this, HotActivity.class);
                startActivity(intent);
            }
        });

    }
}